<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY rdf "http://www.w3.org/1999/02/22-rdf-syntax-ns#">
  <!ENTITY rdfs "http://www.w3.org/2000/01/rdf-schema#">
  <!ENTITY dc "http://purl.org/dc/elements/1.1/">
  <!ENTITY dcterms "http://purl.org/dc/terms/">
  <!ENTITY foaf "http://xmlns.com/foaf/0.1/">
  <!ENTITY a "http://xmlns.heustics.org/schema/myelin/0.1/">
  <!ENTITY m "http://xmlns.heustics.org/ontology/myelin/0.1/">
]>
<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:a="http://xmlns.heustics.org/schema/myelin/0.1/" 
  xmlns:l="http://xmlns.heustics.org/schema/i18n/0.1/"
  xmlns:o="&a;Document#show-translations"
  exclude-result-prefixes="xsl a l o"
> 
  <xsl:variable name="o:l10n" select="a:get-l10n('&a;Document#show-translations')"/>  
  
  <xsl:template match='a:grouping[not(@count) and @key="translations"]'>
    <xsl:param name="config" select="/*/a:config"/>
    <xsl:param name="account" select="/*/a:account"/>
    <div class='container'>      
      <xsl:variable name="grouping-url" select="a:format-url(a:public-url(@uri))"/> 
      <div class="container_header">
        <xsl:apply-templates select="." mode="a:container-header">
          <xsl:with-param name="grouping-url" select="$grouping-url"/>
          <xsl:with-param name="config" select="$config"/>
          <xsl:with-param name="account" select="$account"/>
        </xsl:apply-templates>
        <div class="spacer"/>
      </div>      
      <div class="container_description">
        <span>
          <xsl:value-of select="$o:l10n/l:gentext[@key='no-translations']"/>
        </span>
        <div class="spacer"/>
      </div> 
      <div class="spacer"/>
    </div>
  </xsl:template>
  
  <xsl:template match="a:grouping[@key='translations']" mode="a:container-header">
    <div class="label">
      <span>
        <xsl:value-of select="$o:l10n/*[@name='grouping-headers']/*[@key='translations']"/> 
      </span>   
      <div class="spacer"/> 
    </div>
  </xsl:template>  

</xsl:stylesheet>

